//
//  descriptionViewController.m
//  忘不了
//
//  Created by rimi on 16/7/14.
//  Copyright © 2016年 handuan. All rights reserved.
//

#import "descriptionViewController.h"
#import "SDAutoLayout.h"

@interface descriptionViewController ()
@property (nonatomic,strong)UILabel *descLabel;
@end

@implementation descriptionViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.title = @"软件简介";
    
    [[UIBarButtonItem appearance] setBackButtonTitlePositionAdjustment:UIOffsetMake(0, -60)
                                                         forBarMetrics:UIBarMetricsDefault];//隐藏导航栏返回按钮自带的文字
    //设置导航栏标题颜色、字体大小等
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:20],NSForegroundColorAttributeName:[UIColor brownColor]}];
    
    UIImageView *backGroudView = [[UIImageView alloc]initWithFrame:self.view.frame];
    backGroudView.image = [UIImage imageNamed:@"s.jpg"];
    [self.view addSubview:backGroudView];
    
    _descLabel = [[UILabel alloc]init];
    _descLabel.text = @"\t这款APP主要是为了简化人们的生活，提高日常生活效率而产生的。其内含三个功能模块：出门买什么、钱都去哪了、记得提醒我，各个模块都有其自身独特之处，通过整合集中在一个APP上，减少用户软件下载量，用户可根据自己的实际需求选择使用不同的功能。";
    _descLabel.textColor = [UIColor blackColor];
    _descLabel.font = [UIFont systemFontOfSize:18];
    _descLabel.textAlignment = NSTextAlignmentLeft;
    [self.view addSubview:_descLabel];
    _descLabel.sd_layout
    .centerXIs(self.view.frame.size.width/2)
    .topSpaceToView(self.view,100)
    .widthIs(self.view.frame.size.width*0.8)
    .heightIs(self.view.frame.size.width)
    .autoHeightRatio(0);
}


@end
